<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="FrontEnd.Views.Membership"%>

	<script type="text/javascript">
		$(document).ready(function() {
			$("#login").validate();
		});
	</script>

	<%= Html.ValidationSummary() %>

	<% using (Html.BeginIdentificableForm("login")) { %>
		<div>
			<fieldset>
				<legend>Account Information</legend>
				<p>
					<label for="email">E-mail:</label>
					<%= Html.RequiredEmailTextBox("email")%>
					<%= Html.ValidationMessage("email")%>
				</p>
				<p>
					<label for="password">Password:</label>
					<%= Html.RequiredPasswordTextBox("password")%>
					<%= Html.ValidationMessage("password") %>
				</p>
				<p>
					<%= Html.CheckBox("rememberMe") %> <label class="inline" for="rememberMe">Remember me?</label>
				</p>
				<p>
					<input type="submit" value="Log On" />
				</p>
			</fieldset>
		</div>
	<% } %>
